Skip to content

Conversation

@Sumabhat11
Copy link
Collaborator

@Sumabhat11 Sumabhat11 commented Nov 12, 2025

Description

Adds terminal session documentation


Scope of Change

Select all applicable areas impacted by this PR:

  • View (UI/UX)
  • API
  • CLI
  • Infra / Deployment
  • Docs
  • Other (specify): ________

Developer Checklist

To be completed by the developer who raised the PR.

  • Add valid/relevant title for the PR
  • Self-review done
  • Manual dev testing done
  • No secrets exposed
  • No merge conflicts
  • Docs added/updated (if applicable)
  • Removed debug prints / secrets / sensitive data
  • Unit / Integration tests passing
  • Follows all standards defined in Nixopus Docs

Reviewer Checklist

To be completed by the reviewer before merge.

  • Peer review done
  • No console.logs / fmt.prints left
  • No secrets exposed
  • If any DB migrations, migration changes are verified
  • Verified release changes are production-ready

Summary by CodeRabbit

  • Documentation
    • Added a Terminal "Sessions" guide describing multi-session use (up to three concurrent sessions), per-session state and environments, background execution, crash-safe behavior, and idle reclamation.
    • Added quick start steps (create, switch, close) and clarified current limits (no auto-reconnect on page reload).
    • Updated "What's Coming Next" with planned auto-reconnect, session renaming, and improved session management.

✏️ Tip: You can customize this high-level summary in your review settings.

@Sumabhat11 Sumabhat11 added good first issue Good for newcomers nixopus-documentation documentation all issues related to documentation of the cli, api, view and ci docs all issues/PRs related to documentations labels Nov 12, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 12, 2025

Walkthrough

A new "Sessions" section was added to the Terminal documentation describing multi-session support, background execution, crash-safe behavior, usage steps (create, switch, close), and operational notes; the PR is documentation-only and contains no code changes.

Changes

Cohort / File(s) Summary
Terminal documentation
docs/terminal/index.md
Adds a "Sessions" section describing multi-session support (up to three concurrent sessions with per-session state), background execution and crash-safe behavior; includes getting-started steps (create, switch, close), session behavior/limits (no auto-reconnect on page reload, per-session environment, possible idle reclamation), and updates "What's Coming Next" (auto-reconnect after reloads, session renaming, enhanced session management).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Verify wording accurately reflects implemented vs. planned features (e.g., auto-reconnect is listed as upcoming, not present).
  • Check consistency with existing terminal docs and UX terminology.
  • Confirm steps are clear and reproduce the UI behavior described.

Poem

🐰 I hopped through docs with tiny paws,
New Sessions now for terminal laws.
Create, switch, close — three at most,
Background safe, no reconnect ghost.
A little rabbit cheers this change because! 🎉

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore:update terminal session documentation' clearly and specifically describes the main change—updating documentation for terminal sessions. It directly relates to the file modification (docs/terminal/index.md) and the PR's core objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ee3630b and 8ecdd6c.

📒 Files selected for processing (1)
  • docs/terminal/index.md (1 hunks)
🔇 Additional comments (2)
docs/terminal/index.md (2)

98-121: Documentation is clear and accurately reflects current capabilities and constraints.

The Sessions section is well-structured and correctly documents the 3-session limit and absence of auto-reconnect behavior, aligning with the existing implementation and past review feedback.

Two minor suggestions for increased precision:

  1. Line 119: "Session history is preserved only while the session remains active" – Consider clarifying whether this refers to command history, scrollback, or both (e.g., "Command history and terminal scrollback are retained per session as long as the session remains active").

  2. Line 120: "Idle sessions may be reclaimed automatically, depending on server policy" – Consider specifying a timeout window or reference docs where the policy is defined, if applicable (e.g., "Sessions may be reclaimed after extended inactivity; see server configuration for details").

These are optional improvements; the current language is acceptable for user-facing documentation.


127-128: Future roadmap items are appropriately positioned.

The two new entries ("Auto-reconnect to the last active session after page reloads or short disconnects" and "Session renaming and enhanced session management controls") correctly appear in "What's Coming Next" and align with limitations acknowledged in the feature documentation (e.g., no current auto-reconnect support on line 117).


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/terminal/index.md (1)

98-121: Sessions documentation is well-structured; consider minor clarifications on session persistence semantics.

The Sessions feature section is clearly written and follows the documentation structure well. The getting-started steps are concrete and actionable. However, a few details could be strengthened:

  1. Line 119 ("Sessions stick to the current environment or VPS target"): The phrasing is slightly ambiguous. Clarify whether this means sessions are environment-scoped, or if a session can be reconnected from different environments.

  2. Line 120 (idle reclamation): This is important operational information that could affect user workflows, but it's tucked in the notes. Consider elevating this or providing more detail about the timeout policy (e.g., "idle after X minutes").

  3. Verify feature claims: Ensure the documented behaviors (auto-reconnect after page reloads, background execution, crash-safe reattachment) match the actual implementation, as these are strong reliability guarantees.

Consider minor clarifications:

  • Rephrase line 119 to be more explicit, for example: "Each session is tied to its target environment or VPS; reconnecting from a different environment creates a new session."
  • Expand line 120 with an example: "Idle sessions may be reclaimed automatically after [time period] based on server policy; consider saving important context before stepping away."
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9f34c28 and ee3630b.

📒 Files selected for processing (1)
  • docs/terminal/index.md (1 hunks)

@raghavyuva
Copy link
Owner

@zhravan can you review this?

What sessions enable:

* Multiple concurrent terminals: Create, name, and jump between sessions without losing shell state.
* Auto-reconnect: The UI re-attaches to the last active session after page reloads or short disconnects.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now we do not do auto-recoonect to last session, upon refresh, you would see new connection established.

This is a good point to note, we should consider this as an improvement, with flag control for how terminals should behave. Please consider this as enhancement.

This wont be applicable for current state of terminal implementation at least.

Getting started:

1. Create a session: Opening the terminal automatically starts a session; use the session menu to spin up more.
2. Rename a session: Give each session a descriptive name (for example `deploy` or `logs`) from the session menu.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also is something we current dont support


What sessions enable:

* Multiple concurrent terminals: Create, name, and jump between sessions without losing shell state.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently restricted to 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs all issues/PRs related to documentations documentation all issues related to documentation of the cli, api, view and ci good first issue Good for newcomers nixopus-documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants